#ifndef _DEMO_H_
#define _DEMO_H_

#include <string.h>
#include <stdlib.h>
#include <appdef.h>
/*
rq_name                request service type
rq_buf                 request string
*/
typedef struct svc{
    char rq_name[32];
    char rq_str[1024];
}RQ;

/*
this struct for request response
code response status
msg response message
*/
typedef struct response
{
   int code;
   char msg[2000];
}RS;

#ifdef __cplusplus
extern "C"{
#endif

void *sock_send(void *);
void *sock_recv(void *);
int send_file(MSOCK *,char *);
void send_response( MSOCK *msock,RS rs);

#ifdef __cplusplus
}
#endif

#endif
